@import '../../style/themes';
@import '../../style/mixins';

$window: x-window;

.#{$window} {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba($bg-inverse, 0.3);
  @include reset-component();
  background: $bg;
  box-shadow: $window-shadow;

  &:focus {
    border-color: $primary-color;
    box-shadow: $window-shadow-focus;
    outline: 0;
  }

  &-default {
    .#{$window}_header {
      color: $text-color-secondary;
    }
  }
  &-default:focus {
    .#{$window}_header {
      color: #fff;
      background: $primary-color;
    }
  }
  &-simple {
    .#{$window}_header {
      color: $text-color-secondary;
    }
    .#{$window}_title {
      color: $text-color;
    }
  }
  &-simple:focus {
    .#{$window}_header {
      color: $text-color;
    }
  }

  &-resizable {
  }

  &-fullscreen {
    position: fixed;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-width: 0;
    z-index: 1;
    // transition: all .3s;
  }

  &_header {
    display: flex;
    align-items: center;
    width: 100%;
    height: 32px;
    font-size: $font-size-sm;
    z-index: 1;
  }
  &_title {
    margin: 0 $margin-xs;
    cursor: default;
  }
  &_suffix {
    flex: 1;
  }
  &_operation {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 46px;
    height: 100%;
    font-size: $font-size-base;
    &:hover {
      color: #fff;
      // background: colorPalette($primary-color, 5.5);
      background: rgba($bg-inverse, 0.1);
    }
    &:active {
      // color: $text-color-inverse;
      // background: colorPalette($primary-color, 5);
      background: rgba($bg-inverse, 0.2);
    }
  }
  &_close {
    &:hover {
      background: $red-base;
    }
    &:active {
      background: rgba($red-base, 0.6);
    }
  }

  &_body {
    @include reset-scroll();
    position: relative;
    flex: 1;
    overflow: auto;
  }

  &_footer {
  }
}
